<?php require('conexion.php'); 
	session_start();
		if (empty($_SESSION['dato2']))
			{
			header ("Location: cerrar.php");;
			}
		else{
		if($_SESSION['usuario']===2){
	  $dato2=$_SESSION['dato2'];
	$consulta="select personas.numControl, concat(nomPersona,' ',appPersona,' ',apmPersona) as nombre,carrera,grupo,clubes.nomClub,cedulaacreditacion.Periodo,FechaEx,EstadoA,Jefe from personas,clubes,cedulaacreditacion where personas.idPersona='".$dato2."' and clubes.idClub=personas.refClub and personas.refCedAcre=cedulaacreditacion.idCedulaA";
	  $recordset=mysql_query($consulta);
	  $row=mysql_fetch_array($recordset);
	  $control=$row["numControl"];
	  $nombre=$row["nombre"];
	  $car=$row["carrera"];
	  $gru=$row["grupo"];
	  $clu=$row["nomClub"];
	  $per=$row["Periodo"];
	  $fec=$row["FechaEx"];
	  $est=$row["EstadoA"];
	  $jef=$row["Jefe"];
	  }
	  else{
	  header("Location:index.php");
	  }
	  }
?>
<!--Declaracion del tipo de documento como HTML5-->
<!DOCTYPE html>
<html> 
<head> 
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Pragma" content="no-cache" />
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>SISCOCLUB V_1.0</title>
	<link rel="stylesheet"  href="css/themes/default/jquery.mobile-1.2.1.css" />
	<link href="../_assets/css/jqm-docs.css" rel="stylesheet" type="text/css" />
	 <link rel="shortcut icon" href="images/logo.jpg" />
	<script src="js/jquery.js"></script>
	<script src="docs/_assets/js/jqm-docs.js"></script>
	<script src="js/jquery.mobile-1.2.1.js"></script>
</head> 
<body> 
	<div data-role="page" class="type-interior" id="album-list">
	  <div class="ui-btn-up-b" data-role="header" data-theme="f">
		<h1 align="left"><strong><img src="index_clip_image002.png" alt="lo" width="18" height="18"></strong><strong>SISCOCLUB - CEDULA DE ACREDITACION</strong></h1>
		<a href="" data-icon="" data-iconpos="notext" data-direction="reverse"></a>
		<a href="cerrar.php" class="ui-body-b" icon="Cerrar Sesion" data-iconpos="" data-direction="reverse">Cerrar Sesion</a>
	</div>	
	<div data-role="content">
	<form> 
		<div class="ui-grid-a">
	<div class="ui-block-a">
	<label for="basic"/>
	      <strong>Numero de Control:
	      </label>
	      </strong>
          <input type="text" name="num" id="basic" value="<?php echo $control;?>" OnFocus="this.blur()" required />
	<label for="basic"/>
		  <strong>Carrera:
		  </label>
		  </strong>
          <input type="text" name="car" id="basic" value="<?php echo $car;?>" OnFocus="this.blur()" required />
	<label for="basic"/>
		  <strong>Club:
		  </label>
          </strong>
		  <input type="text" name="club" id="basic" value="<?php echo $clu;?>" OnFocus="this.blur()" required />
	<label for="basic"/>
		  <strong>Fecha que se expide:</strong>
		  </label>
          <input type="text" name="fec" id="basic" value="<?php echo $fec;?>" OnFocus="this.blur()" required />
	<label for="basic"/>
		  <strong>Jefe de Departamento:</strong>
		  <input type="text" name="jef" id="basic" value="<?php echo $jef;?>" OnFocus="this.blur()" required />
	</div>
	<div class="ui-block-b">
	 <label for="basic"/>
          <strong>Nombre:
          </label>
          </strong>
          <input type="text" name="nombre" id="basic" value="<?php echo $nombre;?>" OnFocus="this.blur()" required />
	<label for="basic"/>
		  <strong>Grupo:
		  </label>
		  </strong>
          <input type="text" name="gru" id="basic" value="<?php echo $gru;?>" OnFocus="this.blur()" required />
	<label for="basic"/>
		  <strong>Periodo de Acreditacion:
		  </label>
		  </strong>
          <input type="text" name="per" id="basic" value="<?php echo $per;?>" OnFocus="this.blur()" required />
	<label for="basic"/>
		  <strong>Estado:</strong>
		  </label>
          <input type="text" name="est" id="basic" value="<?php echo $est;?>" OnFocus="this.blur()" required />
	</div>	   
</div>	   		 		  		  		  
	  </form> 
	  		<form name="canc" action="pdf.php" method="POST" target="_parent">
			 <input type="submit" name="sal" value="Guardar para Imprimir" />
			 </form> 
		 	 <form name="canc" action="menumonitor.php" method="POST">
			 <input type="submit" name="sal" value="Salir" />
			 </form>
	</div> 
	<div data-role="footer" class="footer-docs" data-theme="c">
		<p align="center"><strong>Sistema para Control de Clubes</strong></p>
		<p align="center"><strong>Instituto Tecnologico de Tlaxiaco</strong></p>
	</div>
</div>
</body>
</html>
